#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>


int main()
{
	int year = 0;
	int month = 0;
	int days = 0;

	printf("请输入某年某月某日\n");
	scanf("%d %d %d", &year, &month, &days);
	
	int days_month[] = { 31,28,31,30,31,30,31,31,30,31,30,31 };

	if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
	{
		days_month[1] = 29;
	}
	int i = 0;
	for (i = 0; i < month - 1; i++)
	{
		days += days_month[i];
	}
	
	printf("是%d天", days);

	return 0;
}